package cn.glc.daily.life.model.ro;

import cn.simon.free.redis.crud.annotations.Ro;
import cn.simon.free.redis.crud.annotations.RoField;
import cn.simon.free.redis.crud.model.BaseRo;
import lombok.Data;

import java.util.Date;

/**
 * @author simon
 * @date 2021/6/1 10:02
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Ro(key = "user:task", timeOut = 60)
@Data
public class UserTaskRo extends BaseRo<Long> {

    private Long uid;
    /**
     * 标题
     */
    private String title;
    /**
     * 富文本内容
     */
    @RoField(key = "content1")
    private String content;
    /**
     * 推送时间
     */
    private Date pushTime;
    /**
     * 是否完成0 否 / 1是
     */
    private Boolean isDone;
    /**
     * 任务优先级
     */
    private Integer priority;
    /**
     * 过期时间
     */
    private Long expireTime;

}
